package com.yingside.collection.game;

public class GameUtil {

	public static int getLostLife(int attack, int defence){
		int lostLife = attack - defence;
		if(lostLife <= 0){
			lostLife = 1;
		}
		return lostLife;
	}
	
	public static int myRandom(int min, int max){
		int c = (int)(Math.random() * (max - min + 1) + min);
		return c;
	}
}
